﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// 上传文件实体类
/// </summary>
/******************************************************************************************
 ** 文件名：	UploadFile
 ** 创建人：	Tony Mucor
 ** 日期：	2013-08-14
 *****************************************************************************************/
public class UploadFile
{
	private int nID;			// 索引ID
	private string strFileName;		// 上传的文件名
	private string strShortFileName;	// 不带后缀的文件名
	private string strPath;			// 上传到的文件夹路径
	private int nColumnID;			// 上传到的栏目ID
	private string strShowDate;		// 上传文件显示的路径
	private string strDateTime;		// 上传文件上传的日期时间
	private int nCount;			// 上传文件的点击次数
	private int nUserID;			// 上传文件的上传用户ID
	private int nStatus;			// 状态
	private byte[] bitContent;		// 上传文件的二进制
	private string strType;			// 上传文件的类型

	public int ID
	{
		get { return nID; }
		set { nID = value; }
	}

	public string FileName
	{
		get { return strFileName; }
		set { strFileName = value.Trim(); }
	}

	public string ShortFileName
	{
		get { return strShortFileName; }
		set { strShortFileName = value.Trim(); }
	}

	public string Path
	{
		get { return strPath; }
		set { strPath = value.Trim(); }
	}

	public int ColumnID
	{
		get { return nColumnID; }
		set { nColumnID = value; }
	}

	public string ShowDate
	{
		get { return strShowDate; }
		set { strShowDate = value.Trim(); }
	}

	public string DateTime
	{
		get { return strDateTime; }
		set { strDateTime = value.Trim(); }
	}

	public int Count
	{
		get { return nCount; }
		set { nCount = value; }
	}

	public int UserID
	{
		get { return nUserID; }
		set { nUserID = value; }
	}

	public int Status
	{
		get { return nStatus; }
		set { nStatus = value; }
	}

	public byte[] Content
	{
		get { return bitContent;}
		set { bitContent = value;}
	}

	public string Type
	{
		get { return strType; }
		set { strType = value.Trim(); }
	}

	public UploadFile()
	{
		
	}
}
